<?php

include_once('class_sql.php');

class noticiasModel {
    
      
    public function testNoticias(){
        $db = DataBase::conectar();
        $db->setQuery("SELECT * FROM fcf_admin.noticias t1 LEFT JOIN fcf_admin.noticias_cuerpo t2 ON t1.COD_NOTICIA=t2.COD_NOTICIA ORDER BY fecha");  
        $result = $db->loadObjectList();
        return $result;
    }
    
}
?>